<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/5/15
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        form{
            display: block;
            width: 300px;
            margin: auto;
        }span{
            color: red;
                 }
    </style>
</head>
<body>
<%
    String  user = (String)session.getAttribute("user");
    if(user!=null){
        //有人保存状态 ，直接免登陆
        response.sendRedirect("main.jsp");
    }
%>
<%--&lt;%&ndash;同目录下可以直接互相访问&ndash;%&gt; k-v name标签--%>
<form method="get" action="controller.jsp">
    <h1>欢迎来到163系统</h1>
    <table border="4">
        <tr>
            <td>账户</td>
            <td> <input type="text" id="name"  name="name" required></td>
        </tr>
        <tr>
            <td>密码</td>
            <td> <input type="text" id="pwd" name="pwd" required></td>
        </tr>
        <tr>
            <td><span><%=request.getParameter("isloading")==null?"":"*账户或者密码错误"%> </span></td>
            <td>
                <input type="checkbox" name="ck" value="boss">boss
                <input type="checkbox" name="ck" value="vip">vip
                <input type="checkbox" name="ck" value="白嫖">白嫖
            </td>
        </tr>
        <tr>
            <td> <input type="submit" value="登录"> </td>
            <td> <input type="reset" value="重置"> </td>
        </tr>
    </table>


</form>
<span><%=request.getParameter("loginout")==null?"":"*已注销，请重新登录"%> </span>
<span><%=request.getParameter("feifa")==null?"":"*非法入侵被打回登录界面"%> </span>


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>

</script>

</body>
</html>
